package com.scs.application.modules.wm.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.scs.application.core.entity.DataEntity;
import com.scs.application.modules.upgrade.db.annotation.EntityClassAnnotation;
import com.scs.application.modules.upgrade.db.annotation.EntityFieldAnnotation;
import com.scs.application.modules.upgrade.db.enums.EntityFieldType;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 * 三级库盘点
 * </p>
 */
@Data
@Accessors(chain = true)
@TableName("wm_tertiary_stock_check")
@EntityClassAnnotation(remark = "三级库盘点")
public class TertiaryStockCheck extends DataEntity {

    // id ,在父类中处理

    @EntityFieldAnnotation(
            text = "仓库ID",
            type = EntityFieldType.LONG,
            length = "",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String warehouseId;

    @EntityFieldAnnotation(
            text = "仓库名",
            length = "30",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String warehouseName;

    @EntityFieldAnnotation(
            text = "盘点单号",
            length = "20",
            not_null = true,
            default_value = "",
            comment = "盘点单号"
    )
    private String busKey;

    @EntityFieldAnnotation(
            text = "科室ID",
            type = EntityFieldType.LONG,
            length = "",
            not_null = true,
            default_value = ""
    )
    private String deptId;

    @EntityFieldAnnotation(
            text = "试剂组id",
            type = EntityFieldType.LONG,
            length = "",
            not_null = false,
            default_value = ""
    )
    private String reagentTeamId;

    @EntityFieldAnnotation(
            text = "试剂组名称",
            length = "50",
            not_null = false,
            default_value = ""
    )
    private String reagentTeamName;


    @EntityFieldAnnotation(
            text = "理论库存",
            length = "",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private Double stockNum;

    @EntityFieldAnnotation(
            text = "正常",
            length = "",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private Double stockNormal;

    @EntityFieldAnnotation(
            text = "盘亏",
            length = "",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private Double stockLoss;

    @EntityFieldAnnotation(
            text = "盘盈",
            length = "",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private Double stockSurplus;

    @EntityFieldAnnotation(
            text = "未知",
            length = "",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private Double stockUnknown;

    @EntityFieldAnnotation(
            text = "盘点完成",
            length = "",
            not_null = true,
            default_value = "0",
            comment = ""
    )
    private Boolean flagFinished;

    @EntityFieldAnnotation(
            text = "物料ID",
            type = EntityFieldType.LONG,
            length = "",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String matrId;

    @EntityFieldAnnotation(
            text = "物料名称",
            length = "100",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String matrName;

    @EntityFieldAnnotation(
            text = "操作人",
            length = "20",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String busUser;

    @EntityFieldAnnotation(
            text = "盘点类型",
            length = "30",
            not_null = false,
            default_value = "all",
            comment = "所有库存、今天库存变动、昨天库存变动、本周库存变动、本月库存变动"
    )
    private String checkType;

    @EntityFieldAnnotation(
            text = "备注",
            length = "200",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String remark;

}
